package com.ruoyi.fileserver.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;
import java.util.Objects;

/**
 * @描述
 * @作者 DL
 * @创建时间 2024-03-26
 * @修改人
 * @修改时间
 */
public class SysFile {

    @TableId(type = IdType.INPUT)
    private String fid;

    private String module;

    private String day;

    private String fileName;

    private String suffix;

    private Date cdate;

    public String getFid() {
        return fid;
    }

    public void setFid(String fid) {
        this.fid = fid;
    }


    @Override
    public String toString() {
        return "SysFile{" +
                "fid='" + fid + '\'' +
                ", module='" + module + '\'' +
                ", day='" + day + '\'' +
                ", fileName='" + fileName + '\'' +
                ", suffix='" + suffix + '\'' +
                ", cdate=" + cdate +
                '}';
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysFile sysFile = (SysFile) o;
        return Objects.equals(fid, sysFile.fid) && Objects.equals(module, sysFile.module) && Objects.equals(day, sysFile.day) && Objects.equals(fileName, sysFile.fileName) && Objects.equals(suffix, sysFile.suffix) && Objects.equals(cdate, sysFile.cdate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(fid, module, day, fileName, suffix, cdate);
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

}
